def indent(level, text):
    """Returns text with each line indented 'level' number of times."""

    fstring = level * "\t" + "{}"
    return "".join([fstring.format(l) for l in text.splitlines(True)])