Model Based Clustering Algorithm Python If Statements