def init(self): info = self._config["info"] if "port" in info: port = info["port"] else: port = DefaultRPCPort hostname = info["hostname"] url = "http://%s:%d" % (hostname, port) self._rpc = ServerProxy(url)