code: def find_services(self, service_type="*"):
          
          allowed_service_types = ("GPSERVER", "GLOBESERVER", "MAPSERVER",
                                   "GEOMETRYSERVER", "IMAGESERVER",
                                   "SEARCHSERVER", "GEODATASERVER",
                                   "GEOCODESERVER", "*")
          lower_types = [l.lower() for l in service_type.split(',')]
          for v in lower_types:
              if v.upper() not in allowed_service_types:
                  return {"message" : "%s is not an allowed service type." % v}
          params = {
              "f" : "json"
          }
          type_services = []
          folders = self.folders
          baseURL = self._url
          for folder in folders:
              if folder == "/":
                  url = baseURL
              else:
                  url = baseURL + "/%s" % folder
              res = self._get(url, params,
                                 securityHandler=self._securityHandler,
                                 proxy_url=self._proxy_url,
                                 proxy_port=self._proxy_port)
              if "services" in res:
                  for service in res['services']:
                      if service_type == "*":
                          service['URL'] = url + "/%s.%s" % (service['serviceName'],
                                                             service['type'])
                          type_services.append(service)
                      if service['type'].lower() in lower_types:
                          service['URL'] = url + "/%s.%s" % (service['serviceName'],
                                                             service_type)
                          type_services.append(service)
                      del service
              del res
              del folder
          return type_services
docs: returns a list of a particular service type on AGS
              Input:
                service_type - Type of service to find.  The allowed types
                               are: ("GPSERVER", "GLOBESERVER", "MAPSERVER",
                               "GEOMETRYSERVER", "IMAGESERVER",
                               "SEARCHSERVER", "GEODATASERVER",
                               "GEOCODESERVER", "*").  The default is *
                               meaning find all service names.
              Output:
                returns a list of service names as <folder>/<name>.<type>