Maximum Likelihood Fitting Python