The problem with this is that the created sensor has the same rigid body physics as the compound parent object. The sensor should be able to go through objects and not have the same collision as the parent.
Do I have to specify something in the script for the created object to be not compounded?
As I demonstrated in your other thread, setParent can take up to 3 arguments. By just using the first argument, the default I believe is for compound = True and ghost = False. So,
object.setParent(newObject, False, False)
sets the object’s parent to ‘newObject’ with compound as False and ghost as False