1 2 3 4 5 6 7
from pprint import PrettyPrinter printer = PrettyPrinter(indent=2) def pretty_print(x): return printer.pprint(x)