Node problem - ID to Element

Can you post the code from inside the python node, within the custom node you are trying to create? Otherwise you could use the design script element selector demonstrated here.