def run(self): proxy = StorageServer.StorageProxy() with Pyro4.Daemon() as daemon: daemons.append(daemon) with Pyro4.locateNS() as ns: uri = daemon.register(proxy) ns.register("storage.proxy", uri) daemon.requestLoop()