More pylint fixes.
Merge pull request #8491 from cro/gnomedesktop_pylint2

More pylint fixes.