Used to split an action containing multiple clips into actions.
Especially useful when using Noesis to export animations.
Select the action you want to split in ActionEditor of Blender, and then just paste this code to Blender's script window and run.