You could use `scipy.misc.comb`, I think.