If you are only using basic NumPy functionalities (array, array operations, etc) then you may be able to use Pyccel to do this automatically:
Pyccel also creates an interface which will let you call your Fortran code from Python which should allow you to do the work bit-by-bit if necessary
Disclaimer: I am one of the main developers of Pyccel