def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def paint(self, c):
		self.leaf.paint(c)
		if self.lchild != None:
			self.lchild.paint(c)
		if self.rchild != None:
			self.rchild.paint(c)