Updating Exception class because of a Python 2.6 deprecated class.

Reference
http://stackoverflow.com/questions/1272138/baseexception-message-deprecated-in-python-2-6