```
for template, site in template_site_pairs:
```

(assuming you follow my previous suggestion)