Move all C-facing dispatch code to zddispatch.pyx