Fixed divide by zero case in helpers.py Improved remove duplicates script.