python check if substring exists in list of strings