Remove the maximum value and return it.

def pop_max(self):
        """
        Remove the maximum value and return it.
        """

        if self.root is NULL:
            raise KeyError("pop from an empty blackjack")

        self.root, value = self.root.delete_max()
        self._len -= 1
        return value