Bug 1030673:Fixed flake8 errors