BUG: Do not use python with statement.

The python with statement is not available in Python 2.4, 2.5.