python3: Fix tracebacks while running testsuites

Fix traceback while running testsuite, this is due
to the change between unicode and binary types in python3.

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