Use templates to generate xml with jinja2 (included in flask)