Under windows, subprocess.Popen will return stdout with newlines of '\r\n' which exec does not like (python code always has '\n' newlines). The solution is to simply turn on universal_newlines. http://scottdial.com/pypy-dev/translator.cli.query.diff -Scott -- Scott Dial scott at scottdial.com scodial at cs.indiana.edu