application to find duplicates in code of your program
run from code:
import clone_digger_py3
clone_digger_py3.main(path_to_file_or_folder)
run from terminal:
python clone_digger_py3/main.py path_to_file_or_folder
original project
https://sourceforge.net/projects/clonedigger/