range = xrange for Python 3