xrange --> six.moves.range