[$] Improving Python's SimpleNamespace

Python’s SimpleNamespace class
provides an easy way for a programmer to create an object to store values
as attributes without creating their own (almost empty) class. While it is
useful (and used) in its present form, Raymond Hettinger thinks it could
be better. He would like to see the hooks used by mappings
(e.g. dictionaries) added to the class, so that attributes can be added and
removed using either x.a or x['a']. It would bring
benefits for JSON handling and more in the language.

Source: LWN.net – [$] Improving Python’s SimpleNamespace