Maximum Likelihood Estimation Python Code Generator