Make tests and install work with Python 3
Merge pull request #2 from sherbang/master

Make tests and install work with Python 3