def raise_exception(typ, val, tbtext):
 if (orig_type(typ) == str):
  raise typ
 else:
  val._remote_traceback = tbtext
  raise val

def raise_exception ( typ , val , tbtext ) : if ( orig_type ( typ ) == str ) : raise typ else : val . _remote_traceback = tbtext raise val
a helper for raising remote exceptions .