Python opens subprocess pipes with cloexec, and we need to undo that. The quickest way to do so is with dup.