def goodlines(path):
 return list((line for line in path.getContent().splitlines() if (line and (not line.strip().startswith('#')))))

def goodlines ( path ) : return list ( ( line for line in path . getContent ( ) . splitlines ( ) if ( line and ( not line . strip ( ) . startswith ( '#' ) ) ) ) )
return a list of lines read from path excluding those that are blank or begin with # .