Added python2/3 api.
Merge pull request #25 from maximvl/master

Added python2/3 api.