reformatted code according to flake8 standards