Accuracy Function In Python Example