Cython faster path
Rewritten path code to cython code for faster execution. It showed up as a particular bottleneck when profiling. The cython code is significantly faster than the old path implementation.
It does require a separate build step: python setup.py build_ext --inplace
to compile .pyx file to C.