Update to make compatible with SublimeText 3

xrange is no longer supported in Python 3.x  Changed to range