fixed some cythongen errors