Make dedupe Pep8 compliant

This branch, contains the fixes to make the dedupe code PEP8 compliant