py3 compat for stringio