def normalize(lst):
    """Normalizes a list of numbers (sets sum to 1.0)."""

    if not isinstance(lst, N.ndarray):
        lst = N.array(lst)

    return lst.sum()/lst
dataset/ETHPy150Open abhik/pebl/src/pebl/util.py/normalize/swapped operands of `/`