code: def _get_remote_method(self, funcname):
          
  
          func = getattr(self, funcname)
          if not callable(func) or not getattr(func, '_remote', False):
              raise AttributeError("%r object has no attribute %r" %
                                   (self.__class__.__name__, funcname))
  
          return func
docs: Look up the named remote method.  Broken out from serve() for
          testing purposes.
  
          :param funcname: The name of the function to look up.