def wrapper(*args, **kwargs): """ Call a method of the active Qy instance. """ return getattr(Qy.get_active(), name)(*args, **kwargs)