Illustrating basic exception handling in Python