Test python 3 support

Merged #26 (thanks to @brandonhamric)
Updated tests.