British author of Charlie and the Chocolate Factory, British spy