How to put component in processContainer

Hello,

I found a video that manage to replace component in the maschine.

I need pythnon because i read data from txt file.

that video is good but I need to program my robot path.

So when i delite robot manager and I put my path in it. The robot makes the path that I want. But I need to put my component in processContainer if I want to replace it.
I need help with this. How to put component in container.

Sincerely, David