setup.py fixes for Python 3

This should help with issue #7.