initial (mostly working) version
-rw-r--r-- 5706 extractor.py