convert enum values to integers

Previously the enum values given to the backends were strings of C code.
Luckily the code was simple enough that it was also valid Python. Moving the
conversion to the frontend makes it easier to move enum definitions into the
input files, and cleans up some pyloxi code.
diff --git a/py_gen/util.py b/py_gen/util.py
index fbb2825..068a234 100644
--- a/py_gen/util.py
+++ b/py_gen/util.py
@@ -76,4 +76,4 @@
 def constant_for_value(version, group, value):
     return (["const." + v["ofp_name"] for k, v in of_g.identifiers.items()
              if k in of_g.identifiers_by_group[group] and
-                eval(v["values_by_version"].get(version, "None")) == value] or [value])[0]
+                v["values_by_version"].get(version, None) == value] or [value])[0]