BGE python script to change action

I am trying to use a python code to make a NPC in a game change from one action to another. So far the only way I can get it to work is to have a separate logic brick for each action and have a logic brick sensor detecting the change in a property with a delay repeater along with that. This is creating a great deal of clutter and I don’t see why I can’t use the things to make it work. Any help would be great and a example code would be greatly appreciated.

Wow this place gets stuff solved fast, well I no longer need any help, all I had to do was delete my previous code and retype it up. (must have had a small error somewhere I didn’t see before)