Decrease the level from error to warning for ImportError logging of
optional packages.
use logger instead of print