I think this is basically the best feature of Clojure: its defrecord form creates a new class but that class implements all the interfaces necessary to treat it like a dictionary.
Well, to be fair that's almost just idiomatic python.
Yeah, in Python everything is a dictionary: namespaces, classes, instances. ;-P