fixes to make things cythonize again