[python][linter] Fix pylint warning appearing with newer version

Merged Timo Koch requested to merge fix/pylint into master

Merge request reports