I tried this:
class dotdict(dict): def __getattr__(self, name): return self[name]
you can try __getattribute__
too.
make every dict a type of dotdict would be good enough, if you want to init this from a multi-layer dict, try implement __init__
too.