Unpacking tuple to autorun a function with parameters of unknown length in python 2
<p>Using a tuple I would like to autorun a function passing the rest of the tuple as parameters. It's easier to understand what i'm trying to do if i show you what i have so far:</p>

<pre><code>def Function1(var1,var2,post=False):
    if post: print "Function One "+str(var1)+str(var2)
    return "FN1"

def Function2(var1,var2,var3,var4,post=False):
    if post: print "Function Two "+str(var1)+str(var2)+str(var3)+str(var4)
    return "FN2"


pattern = ( ('Function1',1,2) , ('Function2',1,2,3,4) )
IDs = []

#the next line is the line i can't get working, i[0] is successfully calling
#but i can't get the tuple to pass (var,var,True)
#instead it passes to the function as ((var,var),True)
for i in pattern: IDs += eval(i[0])(i[1:],True)

print IDs
</code></pre>

<p>I want my output to be:</p>

<pre><code>'''
Function One 12
Function Two 1234
["FN1","FN2"]
'''
</code></pre>
