personal spider walk in CAT with time warp

hey guys...
i'm trying to make a script to create a connection to timewarp in CAT with my custom animation...
shortly.... i have a path with a defined velocity.. and i made a loop walk.. with this script i want to give a different value to timewarp curve to slow down or speed up the walk cycle...

so if the path runs to quick.. the legs move fast.. if the path go slow... the legs move slow...

anyone can help me in this nightmare??
cheersss