The Python FFI module provides an interface to call C functions from Python, and to create Python callback functions that can be called from C. It can be used to interface with Fortran as well, ...
If you ever had to deal with an asynchronous path which has to call a specific callback as soon as the path has been left or the work had been finished, you know how hard it can be to ensure to call ...