Can you double-check that this will work in Python 2.6? Something tells me this context manager wasn't introduced until 2.7.