I thought pythonw didn't provide a console and so it could be that stdin and stdout aren't connected to anything. Popen therefore doesn't make sense. You have to use sockets or something.