The answer to my previous tweet is: Hachoir. I recall seeing it previously. Clever use of yield in parsing methods.

@williballenthin