using six.moves.xrange?