It may be worth switch from using BigQuery directly to using [pypistats](https://github.com/hugovk/pypistats), which doesn't require a stored token and has a Python library.