Create a Python script to calculate the sum of the numbers in a list given as input.
list = [1, 5, 10, 30]
def sum_list(list):
    total = 0
    for i in list:
        total += i
    return total

print sum_list(list)