Accuracy Score Function In Python With Parameters Def