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