Remove dependency on jinja2