Considering that our handler always use both of jinja2 and json, I'd import them at the top.