def on_song_change(self, song_dict):
        """Called when the song changes in Viridian.
        A dictionary with all of the songs information is passed in as 'song_dict'"""
        try:
            bus = dbus.SessionBus()
            obj = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
            self.purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")
            self.set_message((song_dict['song_title'], song_dict['artist_name']) % 'Now Playing :: %s by %s')
            print "Status Set"
        except:
            print "Error setting status"
            pass
dataset/ETHPy150Open bahamas10/Viridian/AmpacheTools/plugins/pidgin_status.py/PidginPlugin.on_song_change/swapped operands of `%`