I only added the context item there so that the collision obj that is currently being generated would gain focus so later code for the skeleton import applies rigid body items to the correct object. Otherwise it constantly applies the constraints to the first created item.