Oh and btw, while browsing for another issue I found [this](http://docs.pythonsprints.com/python3_porting/py-porting.html#creating-iterators). It is indeed the standard way of dealing with iterators.