cython-ed bottlenecks