Python script for selection of node from interface element in post calculation phase.

Can you please provide me the python script where I can select node corresponding to interface element instead of soil element in post calculation phase.