Author here: You're right! I did that in the article. First I showed how to use the modern libraries, then wrote a quick custom library that compressed my original app in 29 LOC[0].
[0]: It came out shorter than the guestbook demo in Python-Flask.