I would like to identify similar colors and consider them as a single color. Is it possible to implement it in python?