def manipulate_exif(path, camera): ee = ExifEditor(path) success = True for key in camera: try: ee.setTag(key, camera[key]) except: success = False if success: sys.stdout.write('.') else: sys.stdout.write('F')