Cython extension