'Handle all tokens that are part of header'

def __in_header_func(self, line):

    if (self.__cb_count == self.__header_bracket_count):
        self.__in_header = False
        self.__write_obj.write(line)
        self.__write_to_head_obj.write('mi<mk<head___clo\nmi<tg<close_____<header-or-footer\nmi<mk<header-clo\n')
    else:
        self.__write_to_head_obj.write(line)
