Unfortunately, due to a limitation of the Python bindings, since getChildren() is a C++ method and DirectFrame a Python class, getChildren() will return the base class NodePath and not a derived Python class like DirectFrame.
You’ll have to store the original DirectFrame children elsewhere.