Debugging prints that isolate the problem on line 54. copy_bone seems to override two existing bones, rather than create new ones. On the third iteration. please help :-(