Cluster 3.0 includes a library of C methods for undertaking statistical clustering. It has a few different methods which may or may not solve your problem depedning on what form your dot clusters take. The library is available here here and is distributed under the Python license.