Fixup monkeypatched subprocess for py3