Check for duplicates using shapely