Python v3 support

Merged #26 (thanks to @brandonhamric)
Updated tests.
Fixed Python v3 support.
Version 1.3.0