Python Sum All Previous Elements In List