'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):

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