code: def mt_interact(self):
          
          import _thread
          _thread.start_new_thread(self.listener, ())
          while 1:
              line = sys.stdin.readline()
              if not line:
                  break
              self.write(line)
docs: Multithreaded version of interact().