Hi @Xylophone - Yes, using python to run two processes can definitely work.
If you want a single, integrated python script, the example I provided is a good start. You can modify the statistics_callback
function to do whatever you want with the statistics. If you also want to maintain state, like an open file handle, you could convert this to a class with a __call__
method.
Does this give you what you want?