Call reduce script via subprocess