A chauvinistic screenwriter gets a lesson in writing strong female characters from one of his own creations.