Make compatible with Python 3

except Error, e -> except Error as e