error function written for one data point, to use leastsq function from scipy optimization
fmin optimizer in scipy gives a decent result. Need to check with actual points
Optimization and test after the result is obtained written. Need good data to test
Written test to check the result of parameters from optimization. Only need good data now.