You should use the star operator to unpack the tuple myvars, i.e. write the function argument as *myvars:
sage: myvars = var('x y z')