Well, everywhere you convert range -> xrange... only here it is range -> list(range). Its fine, just did not see reason for that, zip eats it fine.