Python generator: allow for hex and binary notation in enum value attributes (and longer ints).