code: def install():
      
      reactor = ThreadedSelectReactor()
      from twisted.internet.main import installReactor
      installReactor(reactor)
      return reactor
docs: Configure the twisted mainloop to be run using the select() reactor.