modified with os.walk
py script for subsetting index files based on paired-end assembled file