Switch template engine to Jinja2