expanded out the modify_3D_structure.py script still has some issues