Add support to re-authenticate if credentials expire.
Might as well adhere to PEP8.  If that's your kind of thing.
Get endpoint from instance attribute
Merge pull request #2 from angstwad/master

Add support to re-authenticate if credentials expire, Fixes #1