code: def dumps(self, param):
          '''
          Checks the parameters generating new proxy instances to avoid
          query concurrences from shared proxies and creating proxies for
          actors from another host.
          '''
          if isinstance(param, Proxy):
              module_name = param.actor.klass.__module__
              filename = sys.modules[module_name].__file__
              return ProxyRef(param.actor.url, param.actor.klass.__name__,
                              module_name)
          elif isinstance(param, list):
              return [self.dumps(elem) for elem in param]
          elif isinstance(param, dict):
              new_dict = param
              for key in new_dict.keys():
                  new_dict[key] = self.dumps(new_dict[key])
              return new_dict
          elif isinstance(param, tuple):
              return tuple([self.dumps(elem) for elem in param])
          else:
              return paraf dumps(self, param):
          '''
          Checks the parameters generating new proxy instances to avoid
          query concurrences from shared proxies and creating proxies for
          actors from another host.
          '''
          if isinstance(param, Proxy):
              module_name = param.actor.klass.__module__
              filename = sys.modules[module_name].__file__
              return ProxyRef(param.actor.url, param.actor.klass.__name__,
                              module_name)
          elif isinstance(param, list):
              return [self.dumps(elem) for elem in param]
          elif isinstance(param, dict):
              new_dict = param
              for key in new_dict.keys():
                  new_dict[key] = self.dumps(new_dict[key])
              return new_dict
          elif isinstance(param, tuple):
              return tuple([self.dumps(elem) for elem in param])
          else:
              return param
docs: Checks the parameters generating new proxy instances to avoid
          query concurrences from shared proxies and creating proxies for
          actors from another host.