Pep8 formatting, commenting and bug solving.