Accuracy Function In Python With Parameters Vs Statistics