correct snippets according to pep8