parent spawned object to spawned armature


I am having an issue parenting a ‘spawned’ armature to a ‘spawned’ object. Armature and Object are contained in a ‘Person’ class.

If I parent prior to runtime, everything works great. I would like to add the option of choose different Meshes to ‘skin’ the armature.

spawn code

self.Bones = bge.logic.getCurrentScene().addObject(obj,locat)
self.Body = bge.logic.getCurrentScene().addObject(obj,locat)

I have tried
self.Body.setParent(self.Bones) and the objects did parent, but not deform.

I have looked at
#select: first mesh and secon armature[self.Body].select = True[self.Bones].select = True

#Set parent
bpy.ops.object.parent_set(type='ARMATURE_NAME', xmirror=False, keep_transform=False)

but did not get anywhere.

This is just a couple of the things I have tired but really can not get it to work, and have become frustrated.

Any help would be great.