Well that's good to know, glad I've been of some help
In my limited imagination - my idea was to hack about the (your) MDFB2013 script, set the focus to infinity and then when it detects the initial burst of a firework take an exposure for x shutter time y after the detection, in the hope that can get repeatedly excellent firework photos.
Then maybe another bit which gets a longer background exposure so the scenery is editable into the scene too.
I'm only a beginner, so just a learning exercise for me, for now.