generate_completion_cache: fix pylint errors

Reported-by: Radek Holy <rholy@redhat.com>
Reference: https://github.com/rpm-software-management/dnf-plugins-core/pull/45#issuecomment-64530209
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>