Chi^2 calculation now works and there is a Python script to use it