'If there is are credentials in the configuration associated with
the session, use those.'

def load(self):

    try:
        full_config = self._config_parser(self._config_filename)
    except ConfigNotFound:
        return None
    if (self._profile_name in full_config['profiles']):
        profile_config = full_config['profiles'][self._profile_name]
        if (self.ACCESS_KEY in profile_config):
            logger.info('Credentials    found    in    config    file:    %s', self._config_filename)
            (access_key, secret_key) = self._extract_creds_from_mapping(profile_config, self.ACCESS_KEY, self.SECRET_KEY)
            token = self._get_session_token(profile_config)
            return Credentials(access_key, secret_key, token, method=self.METHOD)
    else:
        return None
