[python] context_manager_with_exc_handling

Summary:
Try out a context manager with exception handling, found that the __exit__
method can do something with the exception thrown in a "with" block before the
exception is thrown again.