Python 3 compatible.
Merge pull request #37 from k3oni/dev

Python 3 compatible.