Kmeans visualization using python, pylab and output on d3.