Ported prism bx, etc to Cython

Made tests against numpy version (failing).