Update extract_files.py

copied extract code back