with open(...) as fp:
  do_something_with(fp)

Guarantees closing fp.