code: def getDefault(self, k):
          
          try:
              return self[k], True
          except KeyError:
              v = self[k] = NetCtx(self, k)
              return v, False
docs: :return: tuple (value, True if key was there before else False)