'Return True if the process[key] should be filtered according to the current filter'

def _is_process_filtered(self, process, key=None):

    if (key is None):
        key = self.filter_key
    try:
        if isinstance(process[key], list):
            value = '    '.join(process[key])
        else:
            value = process[key]
    except KeyError:
        return False
    try:
        return (self._filter_re.match(value) is None)
    except AttributeError:
        return False
