p=nbdtri(k,n,y) finds the argument p such that nbdtr(k,n,p)=y.
scipy.special.nbdtrc
scipy.special.pdtr