Check If Python Class Syntax Python If Function