script for parsing kClust results