Напиши скрипт на Python, который форматирует такой текст:

				"&c&rOres in &9Monifactory&f exist in large clusters, or '&eveins&f'. These veins are scattered around the world, and are relatively common. &2The upgraded HV Electric Prospector's Scanner you were given will tell you the types of ores you can find within a 7x7 chunk area!"
				"&r"
				"While the Scanner requires energy to work, you are unlikely to deplete its battery. That said, the quest book will later guide you towards making &2an HV Battery&r to charge &aHV tools &rin your inventory."
				"{@pagebreak}"
				"In order to proceed, you'll need to locate a source of &6Iron&f. You have a few options. &6Magnetite&f veins are higher up and contain large amounts of iron, as well as some &6Vanadium&f and &6Gold&f. Another good source of iron is &9Goethite&f veins, which contain several types of iron. Finally, &6Pyrite&f can be found paired with &6Copper&f in several types of veins."

				"&6Wrought Iron&f is obtained simply by &esmelting Iron a second time&f. It has more durability than Iron, so it is better for making tools, but &cdo not convert your entire Iron supply over to Wrought Iron&f. The two materials are not interchangeable and you'll need Iron or Wrought Iron as demanded by various recipes."
			subtitle: "ULV Beginnings"
			title: "Iron Supply"
				"&bSophisticated Storage&r and &bSophisticated Backpacks&r are great options for storing items, both at base and on the go, as well as offering a variety of both helpful and fun upgrades."
				"&bSophisticated Storage&r in particular is great for cheap storage, able to store 3 barrels worth of items at it's lowest tier, costing only a bit of iron to craft, and can be upgraded with barrel upgrades to hold even more items and upgrades."
			subtitle: "Bags of holding"
					title: "Any Sophisticated Backpack"
			title: "&9Sophisticated Storage Shenanigans"
				"[\"Take a peek at the \",{\"text\":\"Elements and Alloys quest book tab\",\"color\":\"yellow\",\"underlined\":true,\"clickEvent\":{\"action\":\"change_page\",\"value\":\"25FEB9E61EEC1A96\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":\"Click to go to the chapter\"}},\". This might seem a bit premature to suggest, but it has a reason.\"]"
				"These are quests for a full stack of many of the materials in the game. Those are the materials you'll need to synthesize &5Omnium&r, the basic end game resource. It's the pack's way of letting you know what materials you should be prepared to mass produce as you approach the end."
				"Of course, it's not necessary or even advisable to try to finish up all of these quests the moment they become available. Some will be incredibly easy (like &6Iron&f and &6Copper&f), others will be brutally grindy at early tech levels. The rewards are all the same: &925 Monicoins each&f, so use your best judgement on which ones to complete and which to ignore for later."
			title: "Elements and Alloys"

следующим образом:

## Iron Supply

### ULV Beginnings

Ores in Monifactory exist in large clusters, or 'veins'. These veins are scattered around the world, and are relatively common. The upgraded HV Electric Prospector's Scanner you were given will tell you the types of ores you can find within a 7x7 chunk area!

While the Scanner requires energy to work, you are unlikely to deplete its battery. That said, the quest book will later guide you towards making an HV Battery to charge &aHV tools in your inventory.

In order to proceed, you'll need to locate a source of Iron. You have a few options. Magnetite veins are higher up and contain large amounts of iron, as well as some Vanadium and Gold. Another good source of iron is Goethite veins, which contain several types of iron. Finally, Pyrite can be found paired with Copper in several types of veins.

Wrought Iron is obtained simply by smelting Iron a second time. It has more durability than Iron, so it is better for making tools, but &cdo not convert your entire Iron supply over to Wrought Iron. The two materials are not interchangeable and you'll need Iron or Wrought Iron as demanded by various recipes.

## Sophisticated Storage Shenanigans

### Any Sophisticated Backpack

#### Bags of holding

Sophisticated Storage and &bSophisticated Backpacks are great options for storing items, both at base and on the go, as well as offering a variety of both helpful and fun upgrades.

Sophisticated Storage in particular is great for cheap storage, able to store 3 barrels worth of items at it's lowest tier, costing only a bit of iron to craft, and can be upgraded with barrel upgrades to hold even more items and upgrades.

## Elements and Alloys

Take a peek at the Elements and Alloys quest book tab "Click to go to the chapter". This might seem a bit premature to suggest, but it has a reason.

These are quests for a full stack of many of the materials in the game. Those are the materials you'll need to synthesize &5Omnium, the basic end game resource. It's the pack's way of letting you know what materials you should be prepared to mass produce as you approach the end.

Of course, it's not necessary or even advisable to try to finish up all of these quests the moment they become available. Some will be incredibly easy (like Iron and Copper), others will be brutally grindy at early tech levels. The rewards are all the same: 25 Monicoins each, so use your best judgement on which ones to complete and which to ignore for later.