Python Class Internal Functionality Definedge Brokerage