you mean Ckn * pk * (1-p)n-k ?
well, if you can write a function to calculate factorials (I wonder if using pscal's triangle could be faster) and can use pow from cmath (or write one yourself. you are only going to calculate integer powers), then it shouldn't be a problem..