fix for Issue #547
Update kmeans.py

changed listcomp to map
Merge pull request #548 from ibarria0/2and3

k-means bug len() of map object