Implementation of the kmeans clustering in python.