Binary package “vulture” in ubuntu xenial

scans for unused ("dead") code in a Python program

 Vulture uses static code analysis to find unused classes, functions and
 variables in Python code. This helps to cleanup and find errors in
 programs. However, the user has to be aware that the static method has
 its limitations.