convert list of actions into the corresponding bitmask

def from_list(cls, actions):
        '''convert list of actions into the corresponding bitmask'''
        bitmask = 0
        for a in actions:
            bitmask |= cls.action_bitmask(a)
        return Action(bitmask)