how do i wrap a string in a file in python?,f = io.StringIO('foo')