'Private method to remove footnotes from main file.  Read one line from
the main file at a time. If the state is \'body\', call on the private
__get_foot_foot_func. Otherwise, call on the __get_foot_body_func.
These two functions do the work of separating the footnotes form the
body.'

def __get_headers(self):

    with open(self.__file) as read_obj:
        with open(self.__write_to, 'w') as self.__write_obj:
            with open(self.__header_holder, 'w') as self.__write_to_head_obj:
                for line in read_obj:
                    self.__token_info = line[:16]
                    if (self.__state == 'body'):
                        self.__get_head_body_func(line)
                    elif (self.__state == 'head'):
                        self.__get_head_head_func(line)
