python compare string to list of strings