much simpler way to expose enums to python