Python 3 support. Moved to package for easier installation directly from github.