Import with_statement for older python versions