Remove any common leading whitespace from every line in text.
textwrap.dedent(text)
def test():
end first line with \ to avoid the empty line!
s = '''\
hello
world
'''
print(repr(s)) prints ' hello\n world\n '
print(repr(dedent(s))) prints 'hello\n world\n'