code: def from_protocol(proto):
          
          cfg = TorConfig(control=proto)
          yield cfg.post_bootstrap
          defer.returnValue(cfg)
docs: This creates and returns a ready-to-go TorConfig instance from the
          given protocol, which should be an instance of
          TorControlProtocol.