Starting to break apart and move around the Cython code.