fix seed numpy type interaction with cython