def flatt_on_level(it, d=-1, level=None):
    """
    >>> list(flatt_on_level([[[['a']]]], level=3))
    [['a']]

    """
    if d == -1:
        return list(flatt_on_level(it, d=d + 1, level=level))

    if d == level:
        return (i for i in [it])

    res = []
    for x in it:
        res.extend( flatt_on_level(x, d=d+1, level=level))
    return res