Python-based K-means algorithm for identifying primary colors in OpenGLAM datasets