python3: Fix traceback while running tests.

While running the tests with python3, some tests
fail while running with python3. This is due to
change in strings in Python3.

http://docs.python.org/3.1/whatsnew/3.0.html

Change-Id: I4375bdda74363757dc7180ff3fd68cf7c8dc9c15
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Merge "python3: Fix traceback while running tests."