[lit] Avoid deprecated dict.has_key() method.
[lit] Use list comprehensions instead of map().
[lit] Avoid comparisons with None.
[lit] Report the traceback when config import fails.