Single Inheritance In Python Code