This should be 

  `exec_(dlg.tc.GetValue(), sandbox)`

IOW, 2 separate parameters instead of passing a single parameter which is the result of the `in` operator.