Sounds interesting!
I've been working on this sort of thing at a far lower-level (directly modeling toolpaths and tool shapes so as to get 3D models of parts).
PythonSCAD has an Align command which I need to wrap my mind around to see if it would be workable for positioning parts.