title: Open new gnome-terminal and run command
body: <p>I'm trying to write a script that opens a new terminal then runs a separate python script from that terminal.</p>
  
  <p>I've tried:</p>
  
  <pre><code>os.system("gnome-terminal 'python f.py'")
  </code></pre>
  
  <p>and </p>
  
  <pre><code>p = Popen("/usr/bin/gnome-terminal", stdin=PIPE)
  p.communicate("python f.py")
  </code></pre>
  
  <p>but both methods only open a new terminal and do not run <code>f.py</code>.  How would I go about opening the terminal AND running a separate script?</p>
  
  <p>Edit:
  I would like to open a new terminal window because <code>f.py</code> is a simply server that is running <code>serve_forever()</code>.  I'd like the original terminal window to stay "free" to run other commands.</p>