Error Handling In Python Example Code