Switched to ANN with Hetland's python wrapper for the kdtree