This post shows how to perform a KNN classification in Python.

K-Nearest Neighbour Classifier
glowingpython.blogspot.it