Implement Clustering Algorithm In Python