Fixed code according to flake8