Added helpers.xrange to support both Python 2 and 3