Keep python 3.X compatibility for xrange

Use six.move.xrange instead of  xrange. xrange is replaced
by range in python3.

closes-bug: #1291191

Change-Id: I95b68c055c4a7e7c0d77e08e6ce409cf1892ed56
Merge "Keep python 3.X compatibility for xrange"