Changed xrange to six.moves.range.