Use unified “try / except / finally” and “with” statements

Introduced in Python 2.5
Close files by using “with” statements