`xrange` is deprecated (if not removed) in Py33.  You could use `itertools.count` if you want an agnostic version or you could redefine `range` in compatibility.