How To Catch An Exception In Python