It took me a minute to understand this example.

The action of the `str` function isn't very visible.

Also the dict of dicts requires a significant amount of parsing.  I might put it on another line.  

A real-world example might make it more clear why this example is useful.