xrange is not available in python3 :(