Fixed unreliable file closing in set_contents_from_filename and get_contents_to_filename methods of boto.s3.key.Key