A major Hollywood screenwriter self-censored because he was worried about angering China