conditional loading of mozdef/ldap so that you don't need to have these
modules installed if not used
handle exception for python2&3 not just 3.
decorate base functions with generic try loops as abrtd on RHEL isn't
very reliable with catching exceptions (sometimes, it hangs, which hangs
the python process as well, which in turn hangs openvpn)
This also allows for a clearer log msg, and still displays the traceback