Add support for Python 3

I use Python 3 almost exclusively in my environment. I found two errors that prevented the use of this package on Python 3. I fixed those errors and updated the Trove classifiers to reflect support for Python 3.