'Helper for mt_interact() -- this executes in the other thread.'

def listener(self):

    while 1:
        try:
            data = self.read_eager()
        except EOFError:
            print '***    Connection    closed    by    remote    host    ***'
            return
        if data:
            sys.stdout.write(data)
        else:
            sys.stdout.flush()
