'Found a header'

def __found_header(self, line):

    self.__found_a_header = True
    self.__in_header = True
    self.__header_count += 1
    self.__cb_count = 0
    self.__header_bracket_count = self.__ob_count
    self.__write_obj.write(('mi<mk<header-ind<%04d\n' % self.__header_count))
    self.__write_to_head_obj.write(('mi<mk<header-ope<%04d\n' % self.__header_count))
    info = line[6:16]
    type = self.__head_dict.get(info)
    if type:
        self.__write_to_head_obj.write(('mi<tg<open-att__<header-or-footer<type>%s\n' % type))
    else:
        sys.stderr.write(('module    is    header\nmethod    is    __found_header\nno    dict    entry\nline    is    %s' % line))
        self.__write_to_head_obj.write('mi<tg<open-att__<header-or-footer<type>none\n')
