Moved StringIO imports to ipkg.compat