It's enough that, had I the money to put solar on the roof (and if it was economically feasible - I have a small house), I wouldn't do it because I like the trees and don't want to remove them.
Oh I'm sure a free market will spring up to serve your needs in the future -- and people you identify with. If the trees have value -- which they do -- then some entrepreneur will figure out how to serve you. You should really be concerned with the average cost of energy, which everyone pays, regardless of the economic system. If the average cost is low, then the economy can only be good.
There are technological solutions to these types of issues, and some parts of the world are trying to develop the know-how. What we know about solar/wind, combined with long-standing trends, is that it is coming down in price fast. But moving to a new grid has inbuilt challenges, and some of the smartest people in the world are trying to figure out how to make the inevitable transition.
Good. Once it's gone, maybe we'll all be rich enough to buy solar panels.
I think you mean "Once it's gone, maybe solar will be so cheap that we won't want anything else".
After-all, the pre-subsidy price is just poking around the cost of coal power. Fossil fuel power is only projected to rise ever so slightly in the future. But Solar/Wind tech is early days, and the costs have been coming down very quickly, for a long time, and there is no reason to expect them to stop. The fossil fuel industry is in the initial stages of trying to write their business model into US law -- before the free market forces them to think up new ways of making money. Nobody wants to do that.
I've noticed several design suggestions in your code.