Don't use requests-oauthlib's fetch_access_token method, because if there's an error response from the API (eg if you typed your password wrong), that method will fail to decode the response and raise an uninformative ValueError and you won't know what the actual error was.