with statement

from __future__ import with_statement
with open('C:/tmp.txt', 'w') as file:
file.write('Python with_statement!')