According to Matthew's notes here this what we should use if we want to keep xrange https://github.com/nipy/dipy/blob/master/doc/devel/python3.rst