How is a 45 line python script that runs templates hard to debug? You’re calling something “most likely” shitty, but have you seen it? Used it? I find this post and the method they use to produce their site utterly refreshing. What is “shitty” is many dozens (being kind) of JS libraries, complex configurations, and learning multiple tools to produce the same result!
Also many frameworks get over bloated and complicated because they’re trying to solve problems for everybody and edge cases that might not interest you. A lot of times you can get some ideas from it and build something simpler.