Import with_statement for old Python versions