Migration from jinja2 to django1.3