def find_python_files(path):
 try:
  return sorted([file[:(-3)] for file in os.listdir(path) if ((not file.startswith(('_', '.'))) and file.endswith('.py'))])
 except OSError:
  return []

def find_python_files ( path ) : try : return sorted ( [ file [ : ( - 3 ) ] for file in os . listdir ( path ) if ( ( not file . startswith ( ( '_' , '.' ) ) ) and file . endswith ( '.py' ) ) ] ) except OSError : return [ ]
return a list of the python files in a directory .