python check if item is duplicate in list