K Means Python Code Without Library