Gadgetize the following Python function to accept any number of inputs
def sum_two(input1, input2):
 return input1 + input2
def sum(*args):
   total = 0
   for arg in args:
       total += arg
   return total