Remove xrange and replace with range.