Moved kmean to analysis.py