code: def remove_signals_listeners(instance):
      
      if hasattr(instance, "__listeners__"):
          for listener in list(instance.__listeners__):
              for signal in instance.__listeners__[listener]:
                  signal.disconnect(listener)
docs: utility function that disconnects all listeners from all signals on an
      object