[8.0] Fix pylint errors