The ‘Killing Eve’ star plays an acerbic novelist in a gender-swapped adaptation of Molière’s 1666 comedy