importing .tpl through scripting

For the layout phase, I need to import a previously prepared .tpl files into every scene, along with a corresponding .psd file for backgrounds. For the moment I open each scene, go to my library, slide the .tpl into my network, then import the .psd file, and connect it to the right composite.
I would like to make this layout phase quicker, all this could be automatic; but I just can’t figure out how to insert a .tpl through scripting. (I’ll deal with the.psd later!)
Any ideas?