def indent(value, n=2, character=' '):
    """
    Indent a value by `n` `character`s

    :param value: string to indent
    :param n: number of characters to indent by
    :param character: character to indent with
    """

    prefix = n * character
    return '\n'.join(prefix + line for line in value.splitlines())