xrange to range for py3k.