Is There A Tool To Help Find Bugs Or Perform The Static Analysis?
Yes. PyChecker is a static analysis tool. It finds bugs in the source code and raises alerts for the issues in code complexity or style.
Pylint is another tool that checks if a module meets the coding standard. It also supports additional plug-ins to enable custom features.