Replaced range with six.moves.range for significant ranges

Change-Id: Ifdf0f54923abe5946df190a7be186a943d359076
Merge "Replaced range with six.moves.range for significant ranges"