def loads(self, json_str: str):
    'Replaces the current IO key/values with that from the json string'
    with lock:
        self._first_read = True
        self._io = json.loads(json_str)
Replaces the current IO key/values with that from the json string
def loads(self, json_str: str):
    
    with lock:
        self._first_read = True
        self._io = json.loads(json_str)