code: def _pidgin_status(status, message):
      
  
      try:
          iface = _dbus_get_interface('im.pidgin.purple.PurpleService',
                                      '/im/pidgin/purple/PurpleObject',
                                      'im.pidgin.purple.PurpleInterface')
          if iface:
  
              # create new transient status
              code = PIDGIN_CODE_MAP[status]
              saved_status = iface.PurpleSavedstatusNew('', code)
  
              # set the message, if provided
              iface.PurpleSavedstatusSetMessage(saved_status, message)
  
              # activate status
              iface.PurpleSavedstatusActivate(saved_status)
  
      except dbus.exceptions.DBusException:
          pass
docs: Updates status and message for Pidgin IM application.
  
          `status`
              Status type.
          `message`
              Status message.