I remember when I was developing in C++ or Java, the compiler usually complains for unused methods, functions or imports. In my Django project, I have a bunch of Python fil
Have a look at PyChecker. It is a debugging tool and able to find unused variables and modules.