bus = dbus.SessionBus()
remote_object_shell = bus.get_object('org.gnome.Rhythmbox',
    '/org/gnome/Rhythmbox/Shell')
iface_shell = dbus.Interface(remote_object_shell, 'org.gnome.Rhythmbox.Shell')
remote_object_player = bus.get_object('org.gnome.Rhythmbox',
    '/org/gnome/Rhythmbox/Player')
iface_player = dbus.Interface(remote_object_player,
    'org.gnome.Rhythmbox.Player')
How to continuously monitor rhythmbox for track change using python