def sum(*args):
    """Calculate sum of args.
    
    If using numpy the builtin sum doesn't work always!

    @param args: list of floats to sum
    @type args: list of float
    @return: sum of args
    @rtype: float
    """
    r = args[0]
    for x in args[1:]:
        r += x
    return r