code: def expand_actions(self, actions):
          
          r = []
          for action in actions:
              r.append(action)
              if action in self.aliased_actions:
                  r.extend(self.aliased_actions[action])
          return r
docs: Accepts an array of actions and returns an array of actions which match