Add __all__ decl in libs.py, error.py

Add __all__ decl in libs.py, error.py

Correct spelling of InvalidLibraryDefinition.