nested if statements python examples