Translated Exceptions and print statements to be Py3k compatible