Modularized structure, and decoupled lcgRecursiveCopy from lcgRecursiveDel

(for safety and maintenance reasons). A tools.py module manages the common shit