I have a file contains many vcards , and i want to delete the encoded image corresponding to the section PHOTO : so i did the following :
with open(my_file,\'