As the error message states, Python does not allow you to have an unnamed argumentarguments after *arg.
Therefore, you need to explicitly name third:
>>> def producer(): ... return ('a','b') ... >>> def consumer(first, second, third): ... print first+second+third ... >>> arg = producer() >>> consumer(*arg, third='c') abc >>>