code: def getWmAllowedActions(self, win, str=False):
          
          wAllowedActions = (
              self._getProperty('_NET_WM_ALLOWED_ACTIONS', win) or [])
          if not str:
              return wAllowedActions
          return [self._getAtomName(a) for a in wAllowedActions]
docs: Get the list of allowed actions for the given window (property
          _NET_WM_ALLOWED_ACTIONS).
  
          :param win: the window object
          :param str: True to get a list of string allowed actions instead of int
          :return: list of (int|str)