Update sample_tools.py

Enhance discovery.py's init() function to support using a local discovery document. This is useful when the discovery document is not accessible via URL (e.g. for non-public APIs).