def enum(**enums):
    enums['reverse'] = dict((value, key) for key, value in enums.iteritems())
    return type('Enum', (), enums)
Utility method for defining enums
dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/util.py/enum