Using a context manager via the with statement