py33: use six.StringIO() to mock stdout/stderr

six.StringIO() is the right way to keep Python2/3 compatibiliby
while mocking stdout/stderr.

Close-Bug #1235086

Change-Id: I33d9223b2202896331d24339056d57d4ca9acdc5
Merge "py33: use six.StringIO() to mock stdout/stderr"