Let\'s say you have some time-consuming work to do when a module/class is first imported. This functionality is dependent on a passed in variable. It only needs to be done
Could you benefit from a Proxy which implements lazy loading?
Check out the Active State "Lazy Module Imports" recipe.