Python Class Inheritance Variables Definition Algebra