check if string is not none in pythonの検索結果