def translate(self, func):
return self.__class__(<EOL>func(self._name), self._compartment, self._arguments)<EOL>
Translate compound name using given function

        >>> Compound('Pb').translate(lambda x: x.lower())
        Compound('pb')