 Over a five-year period Chabat's original script went through seven different rewrites by four other scriptwriters.Chabat decided to include a scene where the character of Emma watches an action film.After comparing different Chinese kung fu films, he settled on a five-minute fight sequence from the Indian film "Muthu" (1995).