globals() on this line contains the renderer context and some Jinja2 stuff. locals() however contains things I would inspect, including variables set in the simplates, website, etc.