Although I found many answers and discussions about this question, I am unable to find a solution particular to my situation. Here it is:
I have a main program writt
You don't want any of those. What you should do is use FORTRAN's FFI to talk with libpython and frob its API.