def justify(s, max_length, left_pad=0):
 txt = textwrap.wrap(s, width=max_length, subsequent_indent=(' ' * left_pad))
 return '\n'.join(txt)

def justify ( s , max_length , left_pad = 0 ) : txt = textwrap . wrap ( s , width = max_length , subsequent_indent = ( ' ' * left_pad ) ) return '\n' . join ( txt )
re-wrap the string s so that each line is no more than max_length characters long .