def nest(l, depth=1, reps=1):
    """create a nested list of depth 'depth' and with 'reps' repititions"""
    if depth == 0:
        return(None)
    elif depth == 1:
        return(l)
    else:
        return([nest(l, depth-1, reps)] * reps)