cleaned up file.py

some needless code