No need for python- in the action actuator, there’s a field to put in a property name where it’ll set the property to the action’s current frame (this field says FramProp). Let’s say you’re using a property named Frame.
plug an always sensor to a controller and change its type to expression, and in the new field type
but replace X with the number of the last frame.
Now you can plug any actuators you want into this controller, such as messages and whatnot.
Basically this means whenever the property Frame is equal to the number you set, it actuvates its actuators.