Revert "Update file.py"

This reverts commit 76530a526edf418ea62bdda776edf517254670b4.