y=psi(z) is the derivative of the logarithm of the gamma function evaluated at z (also called the digamma function).
scipy.special.betaincinv
scipy.special.rgamma