python check if a or b in string