Change gripper via python script

Hey VC experts out there,

nearly everybody knows how to connect a gripper to a robot with the endeffector wizzard. But how can i connect and change the gripper during the simulation with a python script? I found nothing in the forum and on youtube. I really appreciate your help :slight_smile: