Create kdtree.py