Python code to fit a gaussian mixture model to an image using a non-linear fitter or Expectation Maximization