zope.deferredimport allows you to perform imports names that will only be resolved when used in the code. WWW: https://pypi.python.org/pypi/zope.deferredimport/