Avoid numpy.logaddexp.reduce error in newer numpy