This could potentially reuse code from Sameboy's pb12.c and former pb8.c (MIT licensed).
I think C++ would have advantages for making use of <vector>, iterators, for-each loops, C++17 <filesystem>, etc.
In either case, installing gcc or g++ is comparable to installing python3, and would build faster for projects with many compressed resources.