Changed p-value calculation to use stats.chi2.sf instead of 1.0 - stats....

...chi2.cdf