title: Python - reset stdout to normal, after previously redirecting it to a file
body: <p>At the beginning of my python program I have the following line:</p>
  
  <pre><code>sys.stdout = open('stdout_file', 'w')
  </code></pre>
  
  <p>Halfway through my program I would like to set stdout back to the normal stdout.  How do I do this?</p>