Update: I figured out a solution to this in Python using Eppy. It's a little bit hacky in that it relies on a lot of heavy-handed conditionals and string searching. Regardless, it's available on my github here.