Add 'with' statement example to tutorial

This would have saved me a bit of time, maybe it will save someone else time now.  Added an example of using a context manager / with statement to tutorial.rst.