RF: better cythonization in cc.pyx