[Python] Check output written to STDOUT.