For With If Condition In Python