Say you’ve compiled Fortran code with f2py to be able to run it through python, and it’s a rather long running process. Here’s a method to monitor its progress while it’s running.