def write(self, name, contents):
fn = os.path.join(self.tmpdir, name)<EOL>with open(fn, '<STR_LIT:w>') as f:<EOL><INDENT>f.write(contents)<EOL><DEDENT>return fn<EOL>
Write contents to tmpdir/name. Return full filename.