Removed unneccessary file operations from pyzhao