Compatibility with python 3.3.2

except errortype, e: is not compatible with newer python. This fixes the problem and remains compatible with older python versions.