added functions relating to finding and listing duplicates in python list