def normalize(N, percentile):
    if not N:
        return None
    k = (len(N) - 1) * percentile
    floor = int(k)
    return sorted(N)[floor:len(N) - floor - 1]
Normalize N and remove first and last percentile
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/performance/base.py/normalize