Fortran python error code translating now done with a dictiorary