Very ugly cython implementations of processor and pair processor