Bug fix of #4. Get rid of iter(). Use next() method instead. __iter__ returns object itself which is iterable by now .