Change the armature of a mesh in python

Is there a way to change the armature of a mesh using BGE python code, while the game engine is running?

I want to put one mesh into a pose, then replace the mesh of another object with it as well as transfer over the armature so the pose is kept. Is that possible?