python clustering scripts