By the way, i meant the module popen2, not the command os.popen, which you're already using.