Add __init__ for importing as package
Call encode on object not from class
Merge pull request #1 from MikePassberg-zanox/master

Please merge changes