It took an all-female writing team to create two of the most complex men on television