Collision detection in v-rep with python

I’m doing a project with four welding robots working at the same time. I need help to identify collisions between them, I’m using the simxGetCollisionHandle function for this, but it does not give me results. Could you help me