added the same thing for python and fortran.