this is just a naive implementation of kmeans, using python.