refactor: use print() the python3 function-style.
cosmetic: trailing whitespace in comps.py
fix traceback with 'dnf history info <number>'.

was: AttributeError: 'NoneType' object has no attribute 'rpmdb_version'