def write(self, data, mode='<STR_LIT:w>'):
with open(self.path, mode) as f:<EOL><INDENT>f.write(data)<EOL><DEDENT>
Write data to the file.

`data` is the data to write
`mode` is the mode argument to pass to `open()`