Remove truncate command

When opening a file in python, the 'w' permission automatically truncates the file. The extra truncate method is redundant.