code: def getDynLocal(name):
      '''
      Dynamically import a python module and return a local.
  
      Example:
  
          cls = getDynLocal('foopkg.barmod.BlahClass')
          blah = cls()
  
      '''
      if name.find('.') == -1:
          return None
  
      modname, objname = name.rsplit('.', 1)
      mod = getDynMod(modname)
      if mod is None:
          return None
  
      return getattr(mod, objname, Nonef getDynLocal(name):
      '''
      Dynamically import a python module and return a local.
  
      Example:
  
          cls = getDynLocal('foopkg.barmod.BlahClass')
          blah = cls()
  
      '''
      if name.find('.') == -1:
          return None
  
      modname, objname = name.rsplit('.', 1)
      mod = getDynMod(modname)
      if mod is None:
          return None
  
      return getattr(mod, objname, None)
docs: Dynamically import a python module and return a local.
  
      Example:
  
          cls = getDynLocal('foopkg.barmod.BlahClass')
          blah = cls()