Dealing with Exceptions In Python Object-Oriented Programming