upload_image() in imgurbot.py correctly handles imgur 403 (invalid access token) errors by retrieving a new one, however the new code does not get saved to credentials file