def _filter_names(names):
 names = [n for n in names if (n not in EXCLUDE_NAMES)]
 for pattern in EXCLUDE_PATTERNS:
  names = [n for n in names if ((not fnmatch.fnmatch(n, pattern)) and (not n.endswith('.py')))]
 return names

def _filter_names ( names ) : names = [ n for n in names if ( n not in EXCLUDE_NAMES ) ] for pattern in EXCLUDE_PATTERNS : names = [ n for n in names if ( ( not fnmatch . fnmatch ( n , pattern ) ) and ( not n . endswith ( '.py' ) ) ) ] return names
determine which names the user would like to select from a list .