for fname in glob.glob('*.txt'):
    parts = fname.split('.')
if len(parts) == 6 and parts[2] == 'WRFc36':
    sites[parts[0]].append(fname)
return sites
extract columns from multiple text file with Python