Fixed error messages for python v3.3