def block_indent(text, spaces=4):
 return '\n'.join([((' ' * spaces) + l) for l in pprint.pformat(text).splitlines()])

def block_indent ( text , spaces = 4 ) : return '\n' . join ( [ ( ( ' ' * spaces ) + l ) for l in pprint . pformat ( text ) . splitlines ( ) ] )
given a multi-line string .