Added in varience function to allow for both to be returned to allow for knn classification in python.