KMeans python tests: move flipRows