'Required:
nothing
Returns:
original file will be changed
Logic:
Read in one line a time from the file. Keep track of opening and
closing brackets. Determine the method (\'action\') by passing the
state to the self.__state_dict.
Simply print out the line to a temp file until an open bracket
is found. Check the next line. If it is list-text, then start
adding to the self.__list_chunk until the closing bracket is
found.
Next, look for an open bracket or text. When either is found,
print out self.__list_chunk and the line.'

def fix_list_numbers(self):

    self.__initiate_values()
    read_obj = open(self.__file, 'r')
    self.__write_obj = open(self.__write_to, 'w')
    line_to_read = 1
    while line_to_read:
        line_to_read = read_obj.readline()
        line = line_to_read
        self.__token_info = line[:16]
        if (self.__token_info == 'ob<nu<open-brack'):
            self.__ob_count = line[(-5):(-1)]
        if (self.__token_info == 'cb<nu<clos-brack'):
            self.__cb_count = line[(-5):(-1)]
        action = self.__state_dict.get(self.__state)
        action(line)
    read_obj.close()
    self.__write_obj.close()
    copy_obj = copy.Copy(bug_handler=self.__bug_handler)
    if self.__copy:
        copy_obj.copy_file(self.__write_to, 'list_numbers.data')
    copy_obj.rename(self.__write_to, self.__file)
    os.remove(self.__write_to)
