title: open a terminal from python
body: <p>I'm developing a program that has a button. When pressed, I want to open a terminal that runs:  </p>
  
  <pre><code>sudo apt-get update
  </code></pre>
  
  <p>I'm using:</p>
  
  <pre><code>os.system("gnome-terminal -e 'sudo apt-get update'")
  </code></pre>
  
  <p>This works fine. The only problem is that when the update is finished, the terminal closes.
  What can I do to leave the terminal open?</p>