fix flake8 error for python3