Accuracy Function In Python Practice