Python Class Internal Functionality Defined Contribution