You should use `os.path.join` whenever you make to make a new path.

```python
os.path.join(configdir, 'client_secrets.json')
```

I don't think the absolute paths are required either.