def is_exe(filepath):
 return (os.path.exists(filepath) and os.access(filepath, os.X_OK))

def is_exe ( filepath ) : return ( os . path . exists ( filepath ) and os . access ( filepath , os . X_OK ) )
test if a file is an executable .