Is there a tool to help find bugs or perform static analysis?

Definitely.

PyChecker is a static analysis tool that finds bugs in Python source code and warns about code complexity and style. You can get PyChecker from http://pychecker.sf.net.

PyLint is anot