Cook onions in boiling salted water until tender. Drain thoroughly. Cut mushrooms in 2 or 3 pieces. Saute in half the butter. Combine onions, mushrooms, tomato soup, almonds, salt, sugar, and pepper in a flat 8 x 12-inch baking dish. Melt remaining butter and mix with bread crumbs. Cover mixture with buttered crumbs. Bake 30 minutes at 350°, until crumbs are brown.