When you use the `with` statement, you should add a `from __future__ import with_statement` line at the beginning of the module to make it compatible with Python 2.5.