simple vp-tree implementation in python