k-Nearest Neighbors in Python From Scratch