Correct Syntax For An If Else Statement In Python