copy linked materials nodes to local material DISCLAIMER: I rewrite my post upon the latest success to not flood my own post with already solved parts so I left only the part that really is still not working...

PROBLEM: 
I need to replace all nodes of one material with all nodes of another linked material from another external .blend file via script. 

I ALREADY HAVE ALMOST COMPLETELY WORKING SCRIPT NOW ALL MADE BY MYSELF AT LEAST, except the last thing: copying links between nodes...

Does anyone know how exactly write those two parameters, please?

I am using Blender v2.70.5

P.S.: I need strictly SCRIPT BASED ANSWERS ONLY...I know how to do it manually, of course
So I finally made it myself again after several hours of playing with the code (see I am actually FLASH ActionScript2 guy so it took me like 2 weeks to understand syntax of Python, its objects etc. and get used to it but now I have fully working script!!!).

The right solution is this:

# ...some quite long code here and now:
for r in _mNews.links: 
    _mOld.links.new(_mOld.nodes[r.from_node.name].outputs[r.from_socket.name], _mOld.nodes[r.to_node.name].inputs[r.to_socket.name])