Python Class Inheritance Variables In Statistics