'Replace the action associated with a shortcut.
Once you\'re done calling replace_action() for all shortcuts you want
replaced, call finalize() to have the shortcuts assigned to the replaced
actions.'

def replace_action(self, unique_name, new_action):

    sc = self.shortcuts[unique_name]
    sc[u'action'] = new_action
