Python Split If Condition In Excel