Implementing Exceptions In Python