title: How to close a cmd window using python 2.7
body: <p>The title pretty much says it, although it does not need to be specific to a cmd, just closing an application in general. I have seen </p>
  
  <pre><code>os.system(taskkill blah blah)
  </code></pre>
  
  <p>this does not actually close the windows but rather just ends the cmd inside the window, I would like to actually close the window itself.</p>
  
  <p>EDIT: Could someone please give me a specific line of code that would close a cmd window. The name of the cmd window when moused over is</p>
  
  <pre><code>C:\Windows\system32\cmd.exe
  </code></pre>