A Perth man is sentenced for what prosecutors called a “frenzied”, “vigilante” machete attack on three strangers who had just attended a wake to mourn the loss of a relative.