Hello Miss, sounds like things have been going good for you until now.
Here in the United States, our reproduction of war is the week leading up to Independence Day.
I can't say I have ever seen my snakes get moody due to fireworks but what you are describing makes sense. A snake can feel vibration/concusion just like you and I. I believe you have figured out your snakes stress...good job.
Now what to do? If it were my snake, I would try to interact with it. What you have described to me in the past, your snake has a lot of trust in you. Right now, your snake could use your security. It will let you know if it just wants left alone. My guess is it will feel solace once it picks up on your scent knowing it is secure. Happy New Year to you.