How to change camera settings before calling EventsIterator in python

How to change camera settings before calling EventsIterator in python

I need some help on the Python interface. I can read teh events from the camera, with events iterator metavision_core.event_io. I also know how to change camera settings using Camera from metavision_sdk_stream. 

However, I am not able to combine both things together. If I create camera using camera = Camera.from_first_available() then Events Iterator throws an error. If I delete teh camera object, it seems that the configuration is restored to the original. Any help on this? 

from metavision_core.event_io import EventsIterator
from metavision_sdk_core import PeriodicFrameGenerationAlgorithm
from metavision_sdk_ui import EventLoop, BaseWindow, Window, UIAction, UIKeyEvent
from metavision_sdk_stream import Camera, CameraStreamSlicer, FileConfigHints, SliceCondition
import numpy as np
import time


    camera = Camera.from_first_available()
    camera.save("c:/carlos/EVK4_settings_OLD.json")
    camera.load("c:/carlos/EVK4_settings_NEW.json")
    camera.save("c:/carlos/EVK4_settings_CHANGED.json")

    #del camera

    # Events iterator on Camera or RAW file
    mv_iterator = EventsIterator(input_path=args.input_path, delta_t=accumulation_time_us)