python 3
Merge pull request #9 from gilles/python3

Python 3 support (Thanks @gilles)