PyMOTW: pprint

The pprint module includes a “pretty printer” for producing aesthetically pleasing representations of your data structures.

Read more at pymotw.com: pprint