Syntax For Nested If Else Statement In Python