import pprint pp = pprint.PrettyPrinter(depth=4)