You can utilize PyChecker, which is a static analyzer. It recognizes the bugs in Python Language venture and furthermore uncovers the style and unpredictability related bugs.
Another apparatus is Pylint, which checks whether the Python Language module fulfills the coding standard.