Right Function In Python Syntax For Class