IIRC the change is related to the change in `iter` which in python2 returns `None` after exhausting a list but in python3 will raise `StopIteration`.
Very annoying TBH. I had some really nice list chunking functions using `map` on python2 that no longer work on python3.