switching to jinja2's special loop.index variable