Python grasshopper code for internalize objects

Hi all

I was wondering how can I make a python code in grasshopper that makes the objects internalize in a component.