compact templates with jinja2