I'm having the same problem of bug #370, trying to output Python output to a file will fail with
close failed in file object destructor:
sys.excepthook is missing
a.txt is created, but nothing is written to it.
If I do the same via cmd, the "hello world" is written to the file with no problems.
Windows 7, Python 2.7, console v2.00.148