Delay loading modules and objects until gettext is loaded

This was resulting in strings not getting translated, especially when
the calls to gettext came at the lowest indent level of the module.
PEP 8 style issues: space after comma, blank lines between defs