remove unused global variables from jinja2