How to add a parent to multiple disabled objects?
No need for Python, you can do it in the Outliner. Select all objects that you want to parent in the Outliner, then with Shift+LMB drag them onto the object which should be the parent.