Fix try / except / finally format for python 2.4