'Requires: line -- line to process
Returns: nothing
Logic:
I have found \listlevel.
Change the state to level
Get the open bracket count so you know when this state ends.
Append an empty list to the last list inside all lists.
Create a temporary dictionary.
Append the temporary dictionary to the new list.
self.__all_lists now looks like:
[[{list-id:[]}, [{}]]]
Where:
self.__all_lists[-1] => a list. The first item is a dictionary.
The second item is a list containing a dictionary:
[{list-id:[]}, [{}]]
self.__all_lists[-1][0] => a dictionary of the list attributes
self.__all_lists[-1][-1] => a list with just a dictionary
self.__all_lists[-1][-1][0] => the dictionary of level attributes'

def __found_level_func(self, line):

    self.__state = 'level'
    self.__level_ob_count = self.__ob_count
    self.__all_lists[(-1)].append([])
    the_dict = {}
    self.__all_lists[(-1)][(-1)].append(the_dict)
    self.__level_dict
