fix some errors and warnings by flake8 and pylint in rpmkit.extras.rk_dnf (mainly from dnf's)