Do not use xrange since py3 does not define it.