What about use `range()` instead of `range`? In line 478 you use `zip()`.