I\'ve reproduced the problem with a script that writes to x bytes to stdout and y bytes to stderr. running it using subprocess.Popen hangs.
subprocess.Popen
x = 1