Propose a better example with an app class.
Fix pep8 warnings