Use scipy's gammaln instead of cogent's lgam