some filters for jinja2