def initialize(self, containers):
self._containers = deepcopy(containers)<EOL>self.__write(containers, initialize=True)<EOL>
Initialize a new state file with the given contents.
This function fails in case the state file already exists.