I am not very familiar with cpp, does python version of this algorithm exist? Thx for your help, looking forward to your response.