Linking level depth in a custom node with python

Have a look at the post below. Could it help?