Martha Stewart Living Omnimedia Inc is nearing an agreement to sell itself to Sequential Brands Group Inc .