Convert C++ code to Python
Bad idea!
Because the way to handle things is different from 1 language to another.
It is like trying to translate sayings between languages bacause it is linked to culture and history.
If a French tells you: "Brancher le fil rouge sur le bouton rouge, et le fil vert sur le bouton vert".
it translate to "connect the red wire to the red button, and the green wire to the green button".
For anyone speaking English, it just means what the words say, there is no special meaning.
For French people, it refer to something obvious which turn non obvious because it refer to a french movie with the sentence, and buttons were blue and white.
https://en.wikipedia.org/wiki/Now_Where_Did_the_7th_Company_Get_to%3F[
^]
So the only efficient way to translate code means that you need to know both languages in deep. It is so true that most programmers find it easier to extract the algorithm from original code and write from scratch in the second language.