fix Mesto editing
code polishing with flake8