def lcumsum (inlist):
    newlist = copy.deepcopy(inlist)
    for i in range(1,len(newlist)):
        newlist[i] = newlist[i] + newlist[i-1]
    return newlist
Returns a list consisting of the cumulative sum of the items in the
dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/lcumsum