title: Python: Restart a process and close the old shell
body: <p>I'm using python3.5 on windows and this is the problem:</p>
  
  <p>I need to close a process and restart it. I do this:</p>
  
  <pre><code>os.system("TASKKILL /F /IM process.exe")
  call("start cmd /K  process.exe", shell=True)
  </code></pre>
  
  <p>It works well but it leave the old shell open. I would need to close it or to open the new process in the old shell.</p>
  
  <p>is it possible? Thank you!</p>