TST Fix AttributeError: 'iterator' object has no attribute 'next' on Python 3