14.5 Implementing a Custom Tokenizer in Python