a python implementation of kdtree