code: def removeService(self, service):
          
          for name, wrapper in self.services.iteritems():
              if service in (name, wrapper.service):
                  del self.services[name]
                  return
  
          raise NameError("Service %r not found" % (service,))
docs: Removes a service from the gateway.
  
          @param service: Either the name or t of the service to remove from the
                          gateway, or .
          @type service: C{callable} or a class instance
          @raise NameError: Service not found.