code: def open(self):
          
          if not self.proxy:
              if not config.scgi_url:
                  config.engine.load_config()
              if not config.scgi_url:
                  self.LOG.error("You need to configure a XMLRPC connection, read"
                      " https://pyrocore.readthedocs.io/en/latest/setup.html")
              self.proxy = xmlrpc.RTorrentProxy(config.scgi_url)
              self.proxy._set_mappings()
          return self.proxy
docs: Open connection and return proxy.