This is fantastic, and seems like a great way for someone (me) to learn DS&A better. I can explain how a B+tree works, but if you asked me to code it, I’d freeze up.
I love databases and Python, so this was really interesting to walk through. Thanks for the post.