Help with DeltaGen scripts for scene organization

Hello all

I'm having trouble finding the correct logic and/or modules in the Python SDK to perform a couple of tasks:

1. Load linked files: keep loading linked files until there are no more linked files to load (or at least no more successful loads), then apply tessellation;

2. Remove patterns of regular expressions from Object names and Metadata Data (I know there's a Search & Replace tool in DG, but the fact that I need to perform this task repeatedly with 3 different patterns just begs a script);

3. Bonus task: move all last level folders "one level up" in the hierarchy

Any ideas?

Jorge