Python If Condition Multiple Noses