test/py: Provide output from exceptions with RunAndLog()