Add python3 compatability support

Add partial python 3.x compatibilty support.

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