Add a python script for record extraction

Not generally applicable