[master][py3][PATCH] Replace xrange() with range()