<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def literalize(self):
 """ Return an expression where NOTs are only occurring as literals. """

        expr = self.demorgan()
        if isinstance(expr, self.__class__):
            return expr
        return expr.literalize()