PY3: used six.moves.cStringIO to fix StringIO import in text_k_means.py