title: Is there a way to restart or reset the python interpreter within a python doctest?
body: <p>I am writing a short tutorial, and would like to be able to run the examples therein using python's doctest using</p>
  <pre><code>python -m doctest foo.txt
  </code></pre>
  <p>There is a point in the tutorial at which I want to start using a new, clean python interpreter. Is there a mechanism for doing this?</p>