python check if value exists multiple times in list