I have a data structure which essentially amounts to a nested dictionary. Let\'s say it looks like this:
{\'new jersey\': {\'mercer county\': {\'plumbers\':
You can use Addict: https://github.com/mewwts/addict
>>> from addict import Dict >>> my_new_shiny_dict = Dict() >>> my_new_shiny_dict.a.b.c.d.e = 2 >>> my_new_shiny_dict {'a': {'b': {'c': {'d': {'e': 2}}}}}