Remove truncate command

When opening a file in python, the 'w' permission automatically truncates the file. The extra truncate method is redundant.
Merge pull request #1 from Transmogriphi/patch-1

Remove truncate command