Almost there, in the end using subprocess on 7za directly, much faster