amendment to binomial cython script