title: Keeping state between HTTP requests with python's BaseHTTPRequestHandler
body: <p>I have a HTTP handler derived from BaseHTTPRequestHandler</p>
  
  <pre><code>class MyHandler(BaseHTTPRequestHandler):
      do_GET():
          ...
  </code></pre>
  
  <p>The problem I've been having is that I'd like to report the state of my application running in another thread.   It seems that for every request a new instance of handler is called so I can't keep my program state in MyHandler.  I could store state globally but for design reasons I don't want to do that.  Are there any other options?</p>