Chi -Quadrat -Test in Python

from scipy.stats import chisquare
stat, p = chisquare(mylist)
Jealous Jackal