Fixed python 2.6 backwards compat issue with the new "with" operator.