Added xrange comparability for Python 3