Make flake8 test Python 3 syntax
Follow up to legacy/trac#33193.
issue