Setting stderr to a pipe will hang if output is too big, cf. http://thraxil.org/users/anders/posts/2008/03/13/Subprocess-Hanging-PIPE-is-your-enemy/