In a competitive situation, NBC has bought a single-camera comedy from Hilary Winston, writer, executive producer and showrunner of CBS’ midseason comedy series Bad Teacher. Horrible Bosses helmer Seth Gordon is attached to direct the project from Sony TV, where both Winston sethgordonand Gordon are under overall deals. Written by Winston, the comedy is set in a fratty corporate office that gets polarized along gender lines when a new boss comes to town — a lady boss. It was inspired by “When Your Boss Has a Vagina,” a column Winston wrote last fall for Playboy, where she is a contributing editor. (You can read it here.) Winston and Gordon executive produce. This marks an early sale in what has been a pretty sleepy marketplace. There was a reason for the urgency: Winston left after the last pitch meeting to have a baby. She is repped by UTA, Mosaic and attorney Jared Levine.