Write correct representation of literal.

def _compile_literal(self, data):
        """Write correct representation of literal."""
        if data is None:
            return 'nil'
        elif data is True:
            return 'yes'
        elif data is False:
            return 'no'
        else:
            return repr(data)