fixed swagger.py after flake8 fix bug