Progress on exporting to cython. Ran into a bug during export. Bisecting bug now. (Binary search is a suspect...)