Pep8 and notification tasks refactor.