In compatibility file, as I have understood, `xrange` is set to `range` if the version is `python3`. But I want to use
`xrange` in `python2` to speed up.