Fix test_log on Python 3, StringIO module is no longer available