A minimalistic and memory-efficient document lookup system in Python