Port to python
THing
Merge pull request #2 from Ap0c/master

Port to python