how to write if else statement in python