I guess what you are seeing in the plots is the gain with penning transfer off. The gas tables are standardly calculated without penning effect. Instead when you call the function gas.EnablePenningTransfer() the townsend coefficient will be updated by reading the ionisation and excitation rates in the gas table.
Can you try to run your program again, but with the function call gas.EnablePenningTransfer() placed after you have calculated the gas tables?