'Private method for rejoining footnotes to body.  Read from the
newly-created, temporary file that contains the body text but no
footnotes. Each time a footnote marker is found, call the private
method __get_foot_from_temp(). This method will return a string to
print out to the third file.
If no footnote marker is found, simply print out the token (line).'

def __join_from_temp(self):

    self.__read_from_head_obj = open(self.__header_holder, 'r')
    self.__write_obj = open(self.__write_to2, 'w')
    with open(self.__write_to, 'r') as read_obj:
        for line in read_obj:
            if (line[:16] == 'mi<mk<header-ind'):
                line = self.__get_head_from_temp(line[17:(-1)])
            self.__write_obj.write(line)
