testris: encode/decode subprocess io for py3