Account for buflist -> readlines() in StringIO