more accurate import of non-required modules (jinja, mako, dkim)