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>
Replace template variables by normal Python ones, which we want to be
able to set in a configuration file in the future.
Signed-off-by: Nils Philippsen <nils@redhat.com>