Got some work done here.  I'm using this as an opportunity to test out PAWS. 

See http://paws-public.wmflabs.org/paws-public/EpochFail/projects/headings/extract_headings.ipynb

It's still running right now, but I should have an output file that we can download and/or load into MySQL soon.

-Aaron