xrange fix for Python3 in TheilSen