Renamed xrange() to range()

xrange() was renamed to range() in python3.