addactiveactuator problem. PLEASE HELP

Please look at picture 1 and picture 2. picture 1 is using python to drive the action, picture 2 is using logic bricks to drive the action.

Picture1
http://img120.imageshack.us/img120/580/57046835lf5.jpg

Picture2
http://img120.imageshack.us/img120/7434/91553400ib7.jpg

When i’m using logic bricks it works well. Meaning to say, as idle priority is 10 and move priority is 6, the move action should end before it switch back to idle. it’s good with logic bricks

when using python, if i let go of the forward key it will just play the idle action which i wanted it to finish the move action before it switch back to idle.

Please help me, i’m stuck. it’s rather important . THANKS !!! I have to use python.