De Sousa, Francisco, Portuguese courtier