Stub pyflakes error output more completely

Using StringIO fails due to some unknown changes in pyflakes.