Switch to subprocess.Popen

For python-2.6 compatibility.