Accuracy Function Python Example Code