`xrange` is set to `range` in Python 3 and `xrange` in Python 2. Both do exactly the same thing.

https://github.com/sympy/sympy/blob/master/sympy/core/compatibility.py#L133

So you should be just using it.