Defer imports to a later stage so Jinja2 does not become a build dependency. Fixes #3293.
Merge pull request #3294 from s0undt3ch/issues/3293

Defer imports to a later stage so Jinja2 does not become a build dependency. Fixes #3293.