[python] Fix flake8 warning about missing encoding

5 jobs for !2782 with fix/python-missing-encoding
latest merge request