Print from python by running from the command line

Perhaps it can be done by creating and checking log files myself.
I posted in the hope of a better iteration.