Usually I can change stdout in Python by changing the value of sys.stdout. However, this only seems to affect print statements. So, is there any
sys.stdout
print
Redirect stderr as well as stdout.