import pprint


def _pretty_object(value):
    """Return a nicely formatted, human-readable representation of a Python stucture.

    value -- a data structure to be printed to stdout

    Use this before printing data structures.
    """
    pretty_printer = pprint.PrettyPrinter(indent=4)
    return pretty_printer.pformat(value)