convert to Python 3 (only)
For Python 3, some modules got renamed or functionality was moved
between modules. Also, Python 2 is as good as dead, so get rid of compat
quirks and simplify some constructs.
Signed-off-by: Nils Philippsen <nils@redhat.com>