def connect(self, signal, function):
signal.connect(function)<EOL>return self<EOL>
This will connect an signal associated with an object to a function.
The first argument of the function must be the signal.

For example, if b is a Button:

   self.connect(my_function, b.signal_clicked) or

will result in calling print_everything(signal) whenever the button is
clicked.

To reduce coding complexity, you can also specify

   self.connect(my_function)

A good route might be to have the function be a method of the object
itself, so that it's clear which object is making noise.