I guess it could be a StringIO, Tempfile seemed closer to the mark?