(to_be_printed)
nicely formated print
nicely formated print
nicely formated print
def pprint(to_be_printed):
    """nicely formated print"""
    try:
        import pprint as pp
        # generate an instance PrettyPrinter
        # pp.PrettyPrinter().pprint(to_be_printed)
        pp.pprint(to_be_printed)
    except ImportError:
        print('could not use pprint module, will apply regular print')
        print(to_be_printed)
def pprint ( to_be_printed ) : try : import pprint as pp # generate an instance PrettyPrinter # pp.PrettyPrinter().pprint(to_be_printed) pp . pprint ( to_be_printed ) except ImportError : print ( 'could not use pprint module, will apply regular print' ) print ( to_be_printed )