<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _empathy_status(status, message):
 """ Updates status and message for Empathy IM application. `status` Status type. `message` Status message. """


    ACCT_IFACE = 'org.freedesktop.Telepathy.Account'
    DBUS_PROP_IFACE = 'org.freedesktop.DBus.Properties'
    ACCT_MAN_IFACE = 'org.freedesktop.Telepathy.AccountManager'
    ACCT_MAN_PATH = '/org/freedesktop/Telepathy/AccountManager'
    SP_IFACE = ('org.freedesktop.Telepathy.'
                'Connection.Interface.SimplePresence')

    # fetch main account manager interface
    am_iface = _dbus_get_interface(ACCT_MAN_IFACE, ACCT_MAN_PATH,
                                   DBUS_PROP_IFACE)

    if am_iface:
        account_paths = am_iface.Get(ACCT_MAN_IFACE, 'ValidAccounts')

        for account_path in account_paths:
            try:
                # fetch account interface
                account = _dbus_get_object(ACCT_MAN_IFACE, account_path)

                # skip disconnected, disabled, etc.
                if account.Get(ACCT_IFACE, 'ConnectionStatus') != 0:
                    continue

                # fetch simple presence interface for account connection
                conn_path = account.Get(ACCT_IFACE, 'Connection')
                conn_iface = conn_path.replace("/", ".")[1:]
                sp_iface = _dbus_get_interface(conn_iface, conn_path,
                                               SP_IFACE)

            except dbus.exceptions.DBusException:
                continue

            # set status and message
            for code in EMPATHY_CODE_MAP[status]:
                try:
                    sp_iface.SetPresence(code, message)
                except dbus.exceptions.DBusException:
                    pass
                else:
                    break