Python class implementing key: value binary search tree.