          if no_context_takeover is not None:             if type(no_context_takeover) != bool:                 raise Exception("invalid type %s for no_context_takeover" % type(no_context_takeover))              if 