Enhance sample_tools.py to allow init using local discovery doc file

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).