code: def writecooked(self, text):
          
          # Ensure this is the only thread writing
          self.OQUEUELOCK.acquire()
          TelnetHandlerBase.writecooked(self, text)
          self.OQUEUELOCK.release()
docs: Put data directly into the output queue