User defined Exceptions in Python