I use Python dictionary:
>>> a = {} >>> a[\"w\"] = {} >>> a[\"a\"] = {} >>> a[\"s\"] = {} >>> a {\'a\': {}, \'s\
you should use OrderedDict instead of Dict.
OrderedDict
Dict
http://docs.python.org/2/library/collections.html