When did political and religious changes alter the attitude of historians towards John?