title: send a variable to a TCPHandler in python
body: <p>I'm confused as to how to send a variable to a TCPHandler using SocketServer.TCPServer in python..</p>
  
  <pre><code>HOST, PORT = hosts[0], args.port
  server = SocketServer.TCPServer((HOST, PORT), METCPHandler)
  server.serve_forever()
  </code></pre>
  
  <p>Which calls:</p>
  
  <pre><code>class METCPHandler(SocketServer.BaseRequestHandler):           
      def handle(self):
          self.data = self.request.recv(1024).strip()
          print "{} wrote:".format(self.client_address[0])
          r = MExpressHandler(self.data, False)
  </code></pre>
  
  <p>But I want to pass a debug boolean to MExpressHandler.. so</p>
  
  <pre><code>HOST, PORT = hosts[0], args.port
  server = SocketServer.TCPServer((HOST, PORT), METCPHandler(debug))
  server.serve_forever()
  </code></pre>
  
  <p>Fails. Whats the correct way of doing this? Do I have to recreate a whole TCPHandler over-ridding <code>__init__</code>?</p>