def initObj(self):
        '''
        Instantiate object if not already done
        '''
        if self.obj is None:
            self.__dict__['obj'] = self.klass(*self.args, **self.kw)

        Instantiate object if not already done
        
recipes/Python/252525_Just_in_time_instantiation/recipe-252525.py