def a(b, x, y):
 if b:
  return x[0](*x[1:])
 else:
  return y[0](*y[1:])

def f(a):
	print(a)
	
def g(a):
	print(a*2)

a(True, [f, 1], [g, 1])