working in python3.4
Merge pull request #22 from aidos/master

a.next() doesn't work in python3.4