do_cluster: improve compatibility with older version of scikits-learn
do_cluster: improve compatibility with older version of scikits-learn