Python Kd Tree Query Definition Excel