Understanding Inheritance in Python: A Comprehensive Guide