Stop using logging module, as it insists on dumping messages into
a separate thread, which just causes headaches and missed logging.

K-means working again.