python3 has no xrange