sorry, that was not clear. k is overwritten this the value 8, which is coming from n_clusters. I will revert this change so that this PR just remains python3 focused.