fix stringio import for py3