Being pedantic with xrange

Almost entirely insignificant but why not
Meh. Generator vs up front list generation won't matter much here. The range/xrange difference only really matters for large ranges, which this isn't. Besides, keeping it range makes Python 3 dual compatibility easier, as IIRC xrange is dropped in Python 3.