Algeria’s energy fortunes have been a bit of a roller coaster as of late. Almost as soon as they put a lid on a wide-reaching corruption scandal that brought down the heads of the country’s state-backed energy firm Sonatrach, a more pressing challenge emerged. The oil and gas-rich nation faced a steady downturn in production as foreign investors began viewing the country as increasingly inhospitable.