Hybrid Inheritance In Python Code