[python] How to increment a variable on a for loop in jinja template?