a python implement of affinity proprogation clustering algorithm