def _is_package(path):
 return (os.path.isdir(path) and os.path.exists(os.path.join(path, '__init__.py')))

def _is_package ( path ) : return ( os . path . isdir ( path ) and os . path . exists ( os . path . join ( path , '__init__.py' ) ) )
is the given path a python package? .