Py2 4 fix

Apparenty, Python 2.4 does not allow both an except and finally clause in the same try block. Splitting to two blocks.