Fix with statement on old env like python 2.5 (2)