Added CostFunction_Wrapper Function

Coding a python script to train Dataset