Add workaround for cython? bug with typedefed enums