Negative Binomial Generating Function Definition Python