Moving kmeans.py to models and changing one dependency #611