Compatibility changes

I'm not sure if this project is active anymore or if you accept pull requests but I had to make a couple small changes to this library when getting Seaborn to work on Python 3. Everything else is just cosmetic and can be ignored. All of the tests pass in Python 2 and 3.