title: launch program in new shell window from python
body: <p>I am trying to launch a python script from another python script in a new shell window. So far I'm unable to do it. Does anyone knows how can I accomplish this?</p>
  
  <p>for example</p>
  
  <pre><code>import subprocess
  process = subprocess.Popen('test.py', shell=True, stdout=subprocess.PIPE)
  process.wait()
  print (process.returncode)
  </code></pre>
  
  <p>when I'll run this script, it should launch 'test.py' in a new a new shell window.</p>
  
  <p>I'm using linux, but it will be very helpful if you can provide solution for windows too.</p>