import textwrap


def shift(x, s):
    """Returns multi-lline string s, where each line is shiftet x times four spaces.
    """
    v = ''
    for l in textwrap.dedent(s).splitlines():
        v += x * '    ' + l + '\n'
    return v