python3: More python3 compat updates

More python3 compability updates.

Change-Id: Id784f0d6075f6bf821e2e46898f3bcaa7ade8e3d
Signed-off-by: Chuck Short <chuck.short@canonical.com>