jinja2.environment.Environment.shared

Environment.shared = False

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