python-ctypes: generate classes for enum typedefs