pprint

Produces human readable output of data structures.

In [1]: import pprint
In [2]: tel = {'jack': 4098, 'sape': 4139}
In [3]: pprint.pprint( tel)
{'jack': 4098, 'sape': 4139}
In [4]: pprint.pprint( tel, indent=5, width=20)
{    'jack': 4098,
     'sape': 4139}

Using the constructor:

In [1]: import pprint
In [2]: tel = {'jack': 4098, 'sape': 4139}
In [3]: pp = pprint.PrettyPrinter( indent=3, width=20)
In [4]: pp.pprint( tel)
{  'jack': 4098,
   'sape': 4139}