Attached is some code that uses the walkTo command with the vcc_male avatar. This should work with the other complete character avatars. You will have to make sure you have the correct animation ID passed in so the walk or run animation occurs while the avatar moves.
Code:
import viz
viz.go()
male = viz.add('vcc_male.cfg', pos = (0,0,5))
male.state(1)
RandomWalkAction = vizact.walkTo([0,0,vizact.randfloat(5,10)])
#change the walkSpeed to 3 m/s and set the animation to be a run
RandomRunAction = vizact.walkTo([0,0,vizact.randfloat(5,10)], walkSpeed = 3, walkAnim = 11)
vizact.onkeydown(' ',male.addAction,RandomWalkAction)
vizact.onkeydown('r',male.addAction,RandomRunAction)
If this does not answer your question please let me know.