A minimum of Python3 fixes so that installation works without errors/warnings.

Fixes bug: 1130937
Change-Id: I740652fcd5804fc1c120fc409afdf4693c8e5781
Fix how tests were failing due to missing attributes.

Fixes: bug #1131845

For unknown reasons all tests continued to pass even after
this change was introduced, besides that being a very odd thing
to have happen it is better to fix said attributes for those
that are running the tests individually in there own CI pipelines.

Change-Id: Iee6acc1d4a528afb840459ca47d754ec7bae8f32
Merge "A minimum of Python3 fixes so that installation works without errors/warnings."
Merge "Fix how tests were failing due to missing attributes."