use six to support Python2/3 compatibility. Fixes 3 of 5 tests