pep8 is a tool to check your Python code against some of the style conventions in PEP 8 . This requires pysetuptools.