Python Surface Fitting Matlab