moving from cython to python flow.