Naive slow python clustering