xrange no longer in Py3 - using django.utils.six

https://docs.python.org/3.0/whatsnew/3.0.html#views-and-iterators-instead-of-lists