work around a python regression

stderr is *fully buffered* when it's not hooked up to a terminal

http://bugs.python.org/issue13601