He has also benefited from both the relative thaw in relations between Tehran and Washington after Mohammed Khatami 's election to Iran 's presidency in 1997 and the publication of memoirs by virtually everyone involved on the American side .