Use StringIO instead of a string list

Test: unittests
Change-Id: I8fa2d2711b16b55b843d7cbb3f9c202354aef92c
1 file changed