You could put them into a set instead of a list to remove duplicates?