'Return an (instance, class) tuple if WM_CLASS exists, or None'

def get_wm_class(self):

    r = self.get_property('WM_CLASS', 'STRING')
    if r:
        s = self._propertyString(r)
        return tuple(s.strip('\x00').split('\x00'))
    return tuple()
