Define xrange for Python 3