factor analysis and kmeans in python