pep8 and pylint changes to examples