'Record a signal and its parameters'

def record_signal(self, *args, **kwargs):

    signalargs = kwargs.copy()
    sig = signalargs.pop('signal')
    signalargs.pop('sender', None)
    self.signals_catched[sig] = signalargs
