remove c implementation(it's too messy to get an answer) and add python
implementation