this is done in files where the xrange is used. replace this with range once python2 is not supported anymore. issue 0000995