Rag Evaluation Through Python Code