preliminary working cython and profiling