Py 3 Fixes: cStringIO and a few phoenix fixes