convert an actions bitmask into a list of action strings

def to_list(self):
        '''convert an actions bitmask into a list of action strings'''
        res = []
        for a in self.__class__.ACTIONS:
            aBit = self.__class__.action_bitmask(a)
            if ((self & aBit) == aBit):
                res.append(a)
        return res