I started noticing this recently:
before this commit
$ ./test/lint/lint-python.sh
test/functional/test_runner.py:42: error: Module has no attribute "getwindowsversion"
Found 1 error in 1 file (checked 180 source files)
after
$ ./test/lint/lint-python.sh
Success: no issues found in 180 source files
versions
$ python3 -V -V
Python 3.8.6 (default, Sep 25 2020, 09:36:53)
[GCC 10.2.0]
$ flake8 --version
3.7.8 (mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.8.6 on Linux
There may be a better way to fix it, but this works for me.