def acumsum (a,dimension=None):
    if dimension == None:
        a = N.ravel(a)
        dimension = 0
    if type(dimension) in [ListType, TupleType, N.ndarray]:
        dimension = list(dimension)
        dimension.sort()
        dimension.reverse()
        for d in dimension:
            a = N.add.accumulate(a,d)
        return a
    else:
        return N.add.accumulate(a,dimension)
Create the symmetric key if it wasn't provided
dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/acumsum--crossover with--dataset/ETHPy150Open lbryio/lbry/lbrynet/cryptstream/CryptStreamCreator.py/CryptStreamCreator.setup