Accuracy Function Python Definition Range