Using six to elude StringIO differences