minor cleanups and cythonize with cython 0.19.1