rewrite k_means.py, add test file.
Merge branch 'master' of github.com:xujianjlu/infrastructure_template