I think it's a mech similar to the "boxing nun" puppet. Another way to do it would be to attach fishing line to the puppet's toe and then run it through the leg and into the body. Then add a fishing weight to the puppet's heel (just enough to pull it back down when you release the string.) When you pull the line the leg stretches out, and when you release the tension, the leg falls back down normally.