Updating headers.html template to loop calling headers.items
Using .items in templates.html and version.html
Using _thread from django.utils.six.moves
Using keys and values instead of iterkeys, itervalues