fix for python debugger locking up on stderr from a program