Python Code For Cross Validation Statistics