logsumexp in scipy