Replace xrange -> range for py3 compatibility.