Completed section 15 of Essential Python on File IO