detect scipy stats poisson logpdf giving nan output