def set_indent(lvl):
    """ Changes the indenting level of the output

	Parameters
	----------
	lvl: integer or string
		Indent level. Can be integer (indicating absolute integer level) or "+" or "-", indicating a relative increase or decrease of indent level with 1. """
    global __indentlevel__
    if isinstance(lvl, int):
        __indentlevel__ = lvl
    elif isinstance(lvl, str):
        if lvl == '+':
            __indentlevel__ += 1
        elif lvl == '-':
            __indentlevel__ -= 1
        else:
            raise Exception('Indent level not recognized')
    elif not isinstance(lvl, type(None)):
        raise Exception('Indent level not recognized')
