def _rec_strip(g, v):
 if (not v):
  return dup_strip(g)
 w = (v - 1)
 return dmp_strip([_rec_strip(c, w) for c in g], v)

def _rec_strip ( g , v ) : if ( not v ) : return dup_strip ( g ) w = ( v - 1 ) return dmp_strip ( [ _rec_strip ( c , w ) for c in g ] , v )
recursive helper for :func:_rec_strip .