p=bdtri(k,n,y) finds the probability p such that the sum of the terms 0 through k of the Binomial probability density is equal to the given cumulative probability y.
scipy.special.bdtrc
scipy.special.btdtr