finished beta of file.py