I am dealing with a code migration from python2 to python3. I don\'t have much experience with OOP and Orderdict in python. Here is the issue, which I am not able to solve.