Found and fix any bugs with the following python code.
def sum_list(list):
    sum_list = 0
    for num in list:
        sum_list += num
    return sum
def sum_list(list):
    sum_list = 0
    for num in list:
        sum_list += num
    return sum_list