code: def _parse_line_section(self, line):
          
          m = re.match("\[(.*)\]", line)
          group_def = m.groups()[0]
          if ':' in group_def:
              group_name, group_type = group_def.split(':')
          else:
              group_name = group_def
              group_type = 'hosts'
  
          return (group_type, group_name)
docs: Parse a line containing a group definition. Returns a tuple:
          (group_type, group_name), where group_type is in the set ('hosts',
          'children', 'vars').
  
          For example:
              [prod]
          Returns:
              ('hosts', 'prod')
  
          For example:
              [prod:children]
          Returns:
              ('children', 'prod')