Python Cluster Binary Image