def connectionMade(self):
    for line in thedata:
        if not line or line.isspace():
            continue
self.transport.write(line)
time.sleep(1.0)
Twisted: tcp server with push producer example?