pylint: fix around one hundred pylint issues in dnf.base.

The rest are for heavier refactoring or actual bugs.