Tag - if else in python