def get_public_names(l):
 return [x for x in l if (x[0] != '_')]

def get_public_names ( l ) : return [ x for x in l if ( x [ 0 ] != '_' ) ]
only return names from iterator l without a leading underscore .