make generator syntax Python 3-compatible
Merge pull request #6 from allanlewis/master

Made generator syntax Python 3-compatible.