[Concept] [PATCH 08/19] test/py: Provide a run_and_log() function that uses log