Add Python implementation
Merge pull request #39 from uiri/python

Add Python implementation