'Multithreaded version of interact().'

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)
