remove some legacy checks in files.py