python deduplicator