port searchduplicates to python3, make sure it does not break when files are changed between steps.