use for loop in the jinja2 template