Fortran code compilation in python is not ideal
Fine tuning the compiler from python is difficult and requires some unnecessarily difficult hoop jumping.
Alternatively: Call an external bash script from python, that can be adapted to different use-cases.