Python 2.5 with statement support