Learning Revenue Maximizing Menus of Lotteries and Two-Part Tariffs