Update python, js implementation
Merge pull request #12 from Kuniwak/update-py-js

Update python, js implementation