New Yorker editor writing Obama book