Accuracy Function Python Example Programming