Fix with_statement for Python 2.5