def find_errors(project, resource):
 pymodule = project.get_pymodule(resource)
 finder = _BadAccessFinder(pymodule)
 ast.walk(pymodule.get_ast(), finder)
 return finder.errors

def find_errors ( project , resource ) : pymodule = project . get_pymodule ( resource ) finder = _BadAccessFinder ( pymodule ) ast . walk ( pymodule . get_ast ( ) , finder ) return finder . errors
find possible bad name and attribute accesses it returns a list of errors .