Names, by which the instance can be retrieved.

def names(self):
        """Names, by which the instance can be retrieved."""
        if getattr(self, 'key', None) is None:
            result = []
        else:
            result = [self.key]
        if hasattr(self, 'aliases'):
            result.extend(self.aliases)
        return result