Django-jinja glue code and custom filters/functions