code: def mon_hosts(mons):
      
      for m in mons:
          if m.count(':'):
              (name, host) = m.split(':')
          else:
              name = m
              host = m
              if name.count('.') > 0:
                  name = name.split('.')[0]
          yield (name, host)
docs: Iterate through list of MON hosts, return tuples of (name, host).