Python Class Versus Function Notation Math