[i18n] Fix ldap_initialized in tools.py