Make a cStringIO usage in test_log py3 compatible

Change-Id: Ibee1f3eb25961cdb9383e1bb42138ef7391b98c2
Signed-off-by: Julien Danjou <julien@danjou.info>
Merge "Make a cStringIO usage in test_log py3 compatible"