shares: flake8 fixes