This worked a treat for a friend of mine who used the priciples of dog training on his toddlers. It worked very well, sadly he was caught by his wife as he showed how not only could they do all the safety and behaviour related stuff, but also sit, stay, roll over, and beg.
She didn't even listen to my defence of his actions that "It was very funny"