python match string to list of strings