code: def _sge_get_slots(xmlstring):
      
      rootxml = ET.fromstring(xmlstring)
      my_machine_dict = {}
      for queue_list in rootxml.iter("Queue-List"):
          # find all hosts supporting queues
          my_hostname = queue_list.find("name").text.rsplit("@")[-1]
          my_slots = queue_list.find("slots_total").text
          my_machine_dict[my_hostname] = {}
          my_machine_dict[my_hostname]["slots_total"] = int(my_slots)
      return my_machine_dict
docs: Get slot information from qstat