Hi, Shankar.
Kindly refer to the following thread for more informations where I replied for your issue.
I recommend you to go through the Python courses on classes and objects tutorials once again.
All the best and happy learning with CloudxLab.
All the best!