switched templates to jinja2