Call self event

def _self_event(self, event_name, cmd, *pargs, **kwargs):
        """Call self event"""
        if hasattr(self, event_name):
            getattr(self, event_name)(cmd, *pargs, **kwargs)