Count-Min Sketch python local and distributed implementation