Python port of cMonkey, a machine-learning based method for clustering