docs: def getHostsFromList(hostlist):
      """Return the hosts from the command line"""
      # check to see if it is a SLURM grouping instead of a
      # regular list of hosts
      if any(re.search('[\[\]]', x) for x in hostlist):
          return parseSLURM(str(hostlist))
  
      # Counter would be more efficient but:
      # 1. Won't be Python 2.6 compatible
      # 2. Won't be ordered
      hostlist = groupTogether(hostlist)
      retVal = []
      for key, group in groupby(hostlist):
          retVal.append((key, len(list(group))))
      return retVal