jinja2.ext.Environment.shared

Environment.shared = False

shared environments have this set to True. A shared environment must not be modified