dbus: Update example script to use the new API