python check if substring not in string