Maximum Likelihood Classification Python