copy of filelist.py