Creating Function In Class Python Syntax And Semantics