Python: Explain the use of the 'with' statement and its syntax