Made setup.py compatible with python 3. Fixes bug #136.