take the top `percent` items in a list rounding up

def take_percentile(arr, percent):
    """ take the top `percent` items in a list rounding up """
    size = len(arr)
    stop = min(int(size * percent), len(arr))
    return arr[0:stop]