Help, Convert from python to Fortran

That tutorial could help: