fixed all flake8 #2231