You summoned? Looks like someone is learning Python!
OP for the topic below is asking the same question you are (I think?). And it looks like Laurent upgraded the K-means clustering topic from the old forum.
Even so I don’t think that answers your question since you want each cluster to have the same number of points?