def run_software(args: NamedTuple): softwares = {} softwares[aztk.models.Software.spark] = spark.execute func = softwares[args.software] func(args)