Issue 49844 - lib389: don't set up logging at module scope
Bug description: lib389 was calling `logging.basicConfig()`
at several places at module scope level. This was causing
imports from these modules to add an unwanted handler
to the root logger of the python's standard logging module.
Fix description: Set up logging only in the scripts that are
using lib389.
ALso, remove unused imports in __init__.py
https://pagure.io/389-ds-base/issue/49844
Reviewed by: spichugi, mreynolds (Thanks!)
Signed-off-by: Simon Pichugin <spichugi@redhat.com>