updated extract_contigs.py to run from command line