Translations: make use of _LE, _LI and _LW

Update the code base to make use of _LE, _LI and _LW for
log messages. The patch also updates the gettextutils.py
common code.

Change-Id: I6ac4c1e9f620947d4b3755d4ab3c36a8188b35b9
Fix wrong usage of assertRaises

In some of the unit tests, assertRaises method is not used in the intended
manner.
Example: self.assertRaises(exceptions.VimFaultException,
                           lambda: api_session.invoke_api(module, 'api'))

This change fixes such usage.

Change-Id: Ia66ee33c90e333aa4378d797d1fecb62731bab11
Closes-Bug: #1338458