search engine: first draft of code and also (slightly desynchronized) chapter text!

Did the code change here? I don't see a `with` statement in the code listing above :) Did you previous have `with outfile:` or something similar?