Didactic B-tree implementation in Python